Assignemnt: #114 and Multiplication Table
Code
/// Name: Yordan Rashkov
/// Period: 7
/// Program Name: Multiplication Table
/// File Name: multtable.java
/// Date Finished: 5/3/2016
public class multtable
{
public static void main( String[] args )
{
System.out.println("x | 1 2 3 4 5 6 7 8 9" );
System.out.println("==+==================================================" );
for ( int y = 1; y <= 12; y++ )
{
System.out.print( y + " | ");
for ( int x = 1; x <= 9; x++ )
{
int h = x*y;
if ( h < 10 )
System.out.print( h + " " );
else if ( h > 10)
System.out.print( h + " " );
}
System.out.print("\n");
}
}
}